package com.liuchuanzheng.lcz_wanandroid.room

import androidx.room.Embedded
import androidx.room.Entity
import androidx.room.Relation
import com.liuchuanzheng.lcz_wanandroid.module.home.bean.Article
import com.liuchuanzheng.lcz_wanandroid.module.home.bean.Tag

//定义article中tags的一对多关系
@Entity
data class ReadHistory(
    @Embedded
    var article: Article,
    @Relation(
        parentColumn = "id",
        entityColumn = "articleId",
    )
    var tags: MutableList<Tag>
)